<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="#">用户绑定客户</a></li>
		</ul>
		<form class="form-horizontal js-ajax-form" action="{:U('Bdrun/user_shop')}" method="post">
			<fieldset>
				<div class="control-group">
					<label class="control-label">手机号:</label>
					<div class="controls">
						{$data.mobile}
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">用户昵称:</label>
					<div class="controls">
						{$data.user_name}
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">账户状态:</label>
					<div class="controls">
						{$tests[$data['account_status']]}
					</div>
				</div>

				<div class="control-group">
					<label class="control-label">注册时间:</label>
					<div class="controls">
						{$data.regist_time}
					</div>
				</div>
                                <div class="control-group">
					<label class="control-label">位置更新时间:</label>
					<div class="controls">
						{$data.place_up_time}
					</div>
				</div>             
                                <div class="control-group">
					<label class="control-label">第一次登陆时间:</label>
					<div class="controls">
						{$data.first_login_time}
					</div>
				</div>
                <div class="control-group">
					<label class="control-label">最后一次登陆时间:</label>
					<div class="controls">
						{$data.last_login_time}
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">绑定客户:</label>
					<div class="controls">
						<select  id="is_shop"  name="is_shop">
							<if condition="$data['is_shop'] == 0" >
							<option value="0" selected>否</option>
							<else/>
							<option value="0" >否</option>
							</if>
						<volist name="shops" id="vo">
							<if condition="$data['is_shop'] == $vo['shop_id']" >
								<option value="{$vo.shop_id}" selected>{$vo.shop_name}</option>
								<else/>
								<option value="{$vo.shop_id}" >{$vo.shop_name}</option>
							</if>
						</volist>
						</select>
					</div>
				</div>
			</fieldset>
			<div class="form-actions">
				<input type="hidden" name="formget[mobile]" value="{$formget.mobile}">
				<input type="hidden" name="formget[user_level_id]" value="{$formget.user_level_id}">
				<input type="hidden" name="formget[account_status]" value="{$formget.account_status}">
				<input type="hidden" name="user_id" value="{$data.user_id}">
				<button type="submit" class="btn btn-primary js-ajax-submit">{:L('SAVE')}</button>
				<a class="btn" href="{:U('Bdrun/user',array('formget'=>$formget))}">{:L('BACK')}</a>
			</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
	<script>
		layer.ready(function(){ //为了layer.ext.js加载完毕再执行
			layer.photos({
				photos: '#layer-photos-demo'
				,anim: 5 //0-6的选择，指定弹出图片动画类型，默认随机（请注意，3.0之前的版本用shift参数）
			});
		});
	</script>
</body>
</html>